#include "udpsocket.h"
#include <QUdpSocket>
#include <thread>
UdpSocket::UdpSocket() {}

void UdpSocket::sendTest()
{
    QUdpSocket socket;
    QByteArray bytes = QString("哈哈哈").toUtf8();
    socket.writeDatagram(bytes.data(),bytes.size(),QHostAddress::Broadcast,6000);
    socket.flush();
    // std::this_thread::sleep_for(std::chrono::seconds(2));
}
